package com.imooc.user.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <br>
* <b>功能：</b>用户表 entity类<br>
* <b>作者：</b>Tim<br>
* <b>日期：</b>2023<br>
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_center_user")
@ApiModel(value="TUserCenterUser对象", description="用户表")
public class TUserCenterUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String password;

    @ApiModelProperty(value = "用户所在班级")
    private String groupId;

    @ApiModelProperty(value = "用户类型 1学生 2老师 3家长 4普通用户")
    private Integer userType;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "二维码id")
    private String qrcodeId;

    @ApiModelProperty(value = "邮件")
    private String email;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "登录ip")
    private String loginIp;

    @ApiModelProperty(value = "注册时候的ip")
    private String registerIp;

    @ApiModelProperty(value = "用户语言")
    private Integer language;

    @ApiModelProperty(value = "是否管理员（1：是；0：否）")
    private Boolean isAdmin;

    @ApiModelProperty(value = "皮肤颜色")
    private String skin;

    @ApiModelProperty(value = "普通字体大小")
    private Integer fontsize;

    @ApiModelProperty(value = "最近一次登录时间")
    private LocalDateTime loginDate;

    @ApiModelProperty(value = "是否激活用手机号码登录，默认是false")
    private Boolean phoneFlag;

    @ApiModelProperty(value = "是否激活用邮件登录，默认是false")
    private Boolean emailFlag;

    @ApiModelProperty(value = "是否删除 1删除0不删除")
    private Boolean delFlag;

    @ApiModelProperty(value = "1男0女")
    private Boolean sex;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "状态 1:正常,0:删除",hidden = true)
    @TableField(value = "STATUS", fill = FieldFill.INSERT)
    @JsonIgnore
    private Integer status;


}